module.exports = function(res, errcode) {
	var describe;
	switch (errcode) {
		case 1000:
			describe = "用户名或密码错误";
			break;
		case 1001:
			describe = "未登陆";
			break;
		case 1002:
			describe = "已登陆";
			break;
		case 1003:
			describe = "用户不存在";
			break;
		case 1004:
			describe = "登陆超时，请重新登陆";
			break;
		case 1005:
			describe = "原密码错误";
			break;
		case 1006:
			describe = "你没有查看权限";
			break;
		case 1007:
			describe = "你没有修改权限";
			break;
		case 1010:
			describe = "参数出错";
			break;
		case 1011:
			describe = "口令错误";
			break;
		case 1012:
			describe = "账号不存在";
			break;
		case 1013:
			describe = "设备ID重复";
			break;
		case 1014:
			describe = "管理员名称或邮箱重复";
			break;
		case 1015:
			describe = "不能删除默认角色";
			break;
		default:
			describe = "发生了未知错误，请稍后重试";
	}
	var obj = {
		errcode : errcode,
		describe : describe
	}
	console.log(obj.describe);
	res.status(308);
	return res.send(obj);
}